package Io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class CopyDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("./shou_cp.tif");
        FileInputStream fis = new FileInputStream("./shou.tif");
        int t;
        long start = System.currentTimeMillis();
        while ((t = fis.read() )!=-1){
            fos.write(t);
        }
        long end = System.currentTimeMillis();
        System.out.println("复制完毕"+(end-start)+"毫秒");
        fis.close();
        fos.close();
    }
}
